package com.xnyzc.lhy.common.component.tongcheng;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: lihao
 * @Date: 2020/7/5 16:32
 * @Description:
 */
@Component
public class TongChengUrlContant {

    /**
     * 同程分配给外部应用的唯一标识
     */
    public static String clientId;

    @Value("${global.tongcheng.clientId}")
    public static void setClientId(String appId) {
        clientId = appId;
    }

    /**
     * 同城请求地址
     */
    public static String tongchengUrl;

    @Value("${global.tongcheng.url}")
    public void setTongchengUrl(String url) {
        tongchengUrl = url;
    }

    /**
     * 同城秘钥token
     */
    public static String token;

    @Value("${global.tongcheng.token}")
    public void setToken(String tk) {
        token = tk;
    }

    /**
     * 同城请求url前缀(服务)
     */
    public final static String requestServiceUrlPrefix = "/oa/tc/";
    /**
     * 订单查价
     */
    public final static String QUERY_PRICE_API = "/tripcloud/v1/passenger/price";

}
